package com.yanqu.road.server.cmd.unioncampwar;

import com.yanqu.road.message.YanQuMessage;
import com.yanqu.road.pb.unionCampWar.UnionCampWar;
import com.yanqu.road.server.cmd.CrossCommand;
import com.yanqu.road.server.command.Cmd;
import com.yanqu.road.server.manager.unioncampwar.CrossUnionCampWarMgr;
import com.yanqu.road.server.protocol.CrossProtocol;

@Cmd(code = CrossProtocol.C3_UNION_CAMP_WAR_PATRONS_NUM_BACK, desc = "游戏服返回的门客数")
public class CrossUnionCampWarPatronsNumBackCmd extends CrossCommand {
    @Override
    public boolean parseData(YanQuMessage packet) throws Exception {
        return true;
    }

    @Override
    public void execute(YanQuMessage packet) throws Exception {
        UnionCampWar.CrossUnionCampWarPatronsNumRespMsg respMsg = UnionCampWar.CrossUnionCampWarPatronsNumRespMsg.parseFrom(packet.getBytes());
        CrossUnionCampWarMgr.receivePatronsNumMsg(respMsg);
    }

    @Override
    public void sendData() {

    }
}
